home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / s-stopoo.ads < prev    next >
Text File  |  1996-01-30  |  3KB  |  64 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT COMPILER COMPONENTS                         --
  4. --                                                                          --
  5. --                 S Y S T E M . S T O R A G E _ P O O L S                  --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.10 $                             --
  10. --                                                                          --
  11. --           Copyright (c) 1992,1993,1994 NYU, All Rights Reserved          --
  12. --                                                                          --
  13. -- The GNAT library is free software; you can redistribute it and/or modify --
  14. -- it under terms of the GNU Library General Public License as published by --
  15. -- the Free Software  Foundation; either version 2, or (at your option) any --
  16. -- later version.  The GNAT library is distributed in the hope that it will --
  17. -- be useful, but WITHOUT ANY WARRANTY;  without even  the implied warranty --
  18. -- of MERCHANTABILITY  or  FITNESS FOR  A PARTICULAR PURPOSE.  See the  GNU --
  19. -- Library  General  Public  License for  more  details.  You  should  have --
  20. -- received  a copy of the GNU  Library  General Public License  along with --
  21. -- the GNAT library;  see the file  COPYING.LIB.  If not, write to the Free --
  22. -- Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.        --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26. with Ada.Finalization;
  27. with System.Storage_Elements;
  28.  
  29. package System.Storage_Pools is
  30.  
  31. --   type Root_Storage_Pool is abstract
  32. --     new Ada.Finalization.Limited_Controlled with private;
  33. --   use above when private extensions are implemented ???
  34.  
  35.    type Root_Storage_Pool is abstract
  36.      new Ada.Finalization.Limited_Controlled with null record;
  37.  
  38.    procedure Allocate
  39.      (Pool                     : in out Root_Storage_Pool;
  40.       Storage_Address          : out Address;
  41.       Size_In_Storage_Elements : in Storage_Elements.Storage_Count;
  42.       Alignment                : in Storage_Elements.Storage_Count)
  43.    is abstract;
  44.  
  45.    procedure Deallocate
  46.      (Pool                     : in out Root_Storage_Pool;
  47.       Storage_Address          : in Address;
  48.       Size_In_Storage_Elements : in Storage_Elements.Storage_Count;
  49.       Alignment                : in Storage_Elements.Storage_Count)
  50.    is abstract;
  51.  
  52.    function Storage_Size
  53.      (Pool : Root_Storage_Pool)
  54.       return Storage_Elements.Storage_Count
  55.    is abstract;
  56.  
  57. private
  58.  
  59. --   type Root_Storage_Pool is abstract
  60. --     new Ada.Finalization.Limited_Controlled with null record;
  61. --   put in above when private extensions are implemented ???
  62.  
  63. end System.Storage_Pools;
  64.